import Http from "@/http";

export function pageApi(params:any) {
    return Http.post('bianliInfo/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.post('bianliInfo/update', params) : Http.post('bianliInfo/add', params)
}


export function deleteApi(id) {
    return Http.post('bianliInfo/delete', {id: id})
}

export async function categoryApi() {
    const r = await Http.get('bianliInfo/category')
    return r.data
}